package project.pojo;

import com.alibaba.fastjson.annotation.JSONPOJOBuilder;
import com.alibaba.fastjson.annotation.JSONType;

/**
 * @version: 1.0
 * @Auther: Ranger
 * @date: 2022-05-12 21:42
 */

@JSONType(orders={"id","name","credit","courseTime","teacherId","departmentName","type"})
public class Course {
    private Long id;
    private String name;
    private Integer credit;
    private String courseTime;
    private Long teacherId;
    private String departmentName;
    private String type;

    public Course() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    public String getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(String courseTime) {
        this.courseTime = courseTime;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", credit=" + credit +
                ", courseTime='" + courseTime + '\'' +
                ", teacherId=" + teacherId +
                ", departmentName='" + departmentName + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
